﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SzCourt.Logic.BLL;
using KMFrame.Permission.Util;

namespace WebSite.admin
{
    public partial class login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack)
            {
                UserInfo bll = new UserInfo();
                PUserInfo info = bll.Login(login_username.Value, login_userpwd.Value);
                if (info != null)
                {
                    UserSession user = new UserSession(info.UserID, info.UserName, info.UserGUID);
                    SessionBox.CreateUserSession(user);
                }
            }
        }
    }
}